package com.blueocean_health.care.management.domain.dto;

import java.math.BigDecimal;
import java.text.DecimalFormat;

import com.blueocean_health.care.management.em.OrderStatusEnum;
import com.blueocean_health.care.management.em.PayStatusEnum;
import com.blueocean_health.care.management.em.PayStatusUserEnum;

public class AppOrderSelectInfoEntity {
   private String id;
   private Double totalAmount;
   private String createTime;
   private String orderId;
   private String hospitalName;
   private String orderStatus;
   private String payStatus;
   private String day;
   private String hour;
   private String workerNames;
   private String orderStatusName;
   private String payStatusName;
   private String departmentName;
   private String picAddress;
   private String patientRemark;
   
   public String getPatientRemark() {
	return patientRemark;
}
public void setPatientRemark(String patientRemark) {
	this.patientRemark = patientRemark;
}
public String getPicAddress() {
	return picAddress;
}
public void setPicAddress(String picAddress) {
	this.picAddress = picAddress;
}
public String getOrderStatusName() {
		return getOrderStatus()==null?null:OrderStatusEnum.valueOf("_"+getOrderStatus()).getVal();
	}
	public void setOrderStatusName(String orderStatusName) {
		this.orderStatusName = orderStatusName;
	}
	public void setPayStatusName(String payStatusName) {
		this.payStatusName = payStatusName;
	}
	public String getPayStatusName() {
			return getPayStatus()==null||"0".equals(getPayStatus())?null:PayStatusUserEnum.valueOf("_"+getPayStatus()).getVal();
		}
	
public String getDepartmentName() {
		return departmentName;
	}
	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}
public String getId() {
	return id;
}
public void setId(String id) {
	this.id = id;
}
public String getTotalAmount() {
	DecimalFormat    df   = new DecimalFormat("######0.00");   
	String format = df.format(totalAmount==null?0:totalAmount);
	return format;
}
public void setTotalAmount(Double totalAmount) {
	this.totalAmount = totalAmount;
}

public String getCreateTime() {
	return createTime;
}
public void setCreateTime(String createTime) {
	this.createTime = createTime;
}
public String getOrderId() {
	return orderId;
}
public void setOrderId(String orderId) {
	this.orderId = orderId;
}
public String getHospitalName() {
	return hospitalName;
}
public void setHospitalName(String hospitalName) {
	this.hospitalName = hospitalName;
}
public String getOrderStatus() {
	return orderStatus;
}
public void setOrderStatus(String orderStatus) {
	this.orderStatus = orderStatus;
}
public String getPayStatus() {
	return payStatus;
}
public void setPayStatus(String payStatus) {
	this.payStatus = payStatus;
}
public String getDay() {
	return day;
}
public void setDay(String day) {
	this.day = day;
}
public String getHour() {
	return hour;
}
public void setHour(String hour) {
	this.hour = hour;
}
public String getWorkerNames() {
	return workerNames;
}
public void setWorkerNames(String workerNames) {
	this.workerNames = workerNames;
}
   public static void main(String[] args) {
//		DecimalFormat    df   = new DecimalFormat("######0.00");   
		double   f   =   1;  
		BigDecimal   b   =   new   BigDecimal(f);  
		double   f1   =   b.setScale(3,   BigDecimal.ROUND_HALF_UP).doubleValue();  
		System.out.println(f1);
}
}
